Added input current fragment  when replacing.