Fixes cropping bugs