fix for wx.error for the number of rows vs columns