Fixes bug with role checking syntax.