fixed arguments being compared incorrectly