fix(map): fix small issue with promise chaining