Fixes a bug where the view was not clearing properly.

Fixes a bug where the view was not clearing before drawing.