fix wxWidgets error when remove file association