wx Development: fix minor bug