fixed bug with limits of the scan not updating