Fixed render.js bug