Fixed 500 error when try to remove group