fix bugs in PixelViewCtrl