Fix bugs at SurfaceView.