Fixing crop modal bug