Scan error

Scan was still not getting the right input file name. Should work now!