fixed error in render