fix called twice when open minimap