fix bug when cropping with only height