fix compare for stdout