Fixed bug when restarting frame cropping