fixed session bug where it wouldn't update after 1 refresh