Fixed errors when editing existing projects.