Fix copying nested attributes