Fixed global method problem.