fix bad variable reference in sqlFormat refactoring