Fixed project-related crashes on build