Fix small bug in user history