Fix touch input not working after clearing canvas