Bug fix: Internal error when deleting the mine