fixed a problem with local variables for 1.8