fix compare height