Fix initial load of fragment URLs