Fixed canvas resize.