fix bugs when render nested objects