[GX] fix crashes