Fixed TabPage selection bug.