Fixed that canvas rendering bug