corrects doubled history states

https://github.com/bitovi/canjs/issues/587