fixes for canvas renderer