wx Development: Fix bug