fix bug in get_access_value and update_access_history