Fix issue 614: correct order of scan and find symbol
fix error messages