fixed HABITAT_NUMBER when change habitats due to map