Fixing notification for the replace condition