fixing Id and reconstruction bugs