History command bug fix when minimal value.