fixing userhistory