prevent segfault when there are no flags on map :S