fix history and completion storage