Fixed NA handling bug in contestation branch of MapFun