Minor bugfixes to code for deleting a project.