wx3.1 fix