fixing error cropping on single layer