fixed crop bug