fixed a minor scope bug on returnValue