Fixed a bug for replace layer