fixed situation when there are no locations