more canvas hist bugfixes