Bug fixes when loading the project.