Fix object initialization order.