fixed one global var