openbracket not formatting correctly with OR clause