Fixed precedence bug that placed equal-precedence operators at the end