bugfix in deleteProject