fix precedence of "as" binding