fix wrong canvas caching