Fixed bug that caused multiple history initiation (no history update)