Fixed bug where canvas wasn't being cleared.