Fixed map lambda function