fix < wx3.0