Fix error return project deletion