fix gm crash