fixed bugs related to map path