Bug fixing of canvas representation