Fix crash on accessing non-initialized pointner