Fix sp history