fix segfault when autoglobals are not properly setup