better fix  for canvas overflow