Minor bugfix when deleting a project