fix canvas scale issue