fixing layer misalignment