fix get_history