Fixed some wxPython Phoenix port crashes closes #42