Fixed performance issue on re-opening a project.