Fixed bug in MapReduceElement