fix missing parenthesis and nested priority