fixed a bug with local variables