fixing history api