Fixed canvas display bug