Tweak gen_contents_index now dph may not be there