Fix an issue of crop not working