Fix layer-wise recosntruction error