Fixed bug in code scanner after saving project.