Wrong file replacement with right one