Fixed definition in case of wrong replacement.