fix doc and fix history recalling