Fixing small wxPython error.