How to fix scan problems (problems 1-31)