fix compare pos