Fixing print layer detachment