This commit also fixes the way the previous completion record was fetched to avoid the creation of new duplicates.