fixed crop bugs