Added beginPath() before line drawing, fixing Firefox issue