Fix object cloning and output namespace issue