Fixed problem with canvas height rectangle fill