fixed bug that would give wrong results when using - or / with mixed values