Mapfixes.

Same fixes as on BEF. These are atmos/bugfixes and should be merged.

Signed-off-by: Jamini <mobiousjami@gmail.com>
Merge pull request #2826 from Jamini/master

MASTER - Mapfixes.