fixed flock bug