fix bugs for response format in invalid.