Fix on for is_distributed call.