History API fixes