canvas history update seems to be working properly now