fix issues about change rendering object

...and lights still don't work very well