fixed scope when accessing static method