Bugfix: fix errors when loading projects