Fixing bug in initial state for browsers with history support