fixed setupmap issue