Fixed error in RenderControl render method
-Duplicate code

commit build-id=b0000-101