fixing locationmanager.getStates issue