fixed issue #52 (error when deleting project)