Fixes bug where rectangles don't show up if initHeight = 0