Fix bug in user map reduce