fixing map errors