stopped rendering if canvas valid