Fix layout issue in history