crop bug fix