fix getVariables