Declared the package scope variable before tryingto modify it.