fixed issue when deleting a ward