Global pointer fix (triggering fatal error when logging in)