fixed bug where some location flags did not appear because site uses .gif and .jpg on flags interchangeably