Fixed bug in MAP output (needed value, not array)