Fix wx28 compatibility issue.