scan and fix