Get your chisel or screwdriver and insert it at the back of the loft ladder unit and push forward 5 mm.this small adjustment makes a massive difference and should bring the door back into the frame . I got this from experience of fitting ladders the last 15 years .