fixed precedence Bug