Fixed bug with restart and filterhistory