fixed bug in MAP executation