Fixed precedence bug