fix #1178 - error when the user doesn't belong to a project