fix missing user history bug