Fixed error of overlooking removing a deleted function