fix namespace bug for objects in objects