fix failed wxAssert