raise exception if yaml has still replace key