fix canvas stuff