Fixed problem causing renderSql not to run