Fix weird canvas renderer bugs