Minor improvement for compiling new history list