fixed deleting setlement that should not be deleted