fixing refresh without hash in URL