minor fixes to canvas renderer