SERVER-8070 fix comparision to be correct