fixed canvas width bugs.