Fixed error with pushState support