fix compare result