fixed problem when loading projects