fix android issue on canvas