bugfix

fixed history forward & back bug