Fixed mixed uses of result_type and remote_result_type