fixed if clause in scanProject.