fix crop bug