Fixed all errors in RectangleView.