(GX) error checking fix