fixed bug related with the map js