Fixed stuff that got messed up duting history recreation.