fix loading when url ends with #