Update render.lua

Small typo and more optimization.