fixed cropping bug