fix the high cropping segfault