fixes history completion