fixed crashing bug from preventing running app, also found and fixed one where the location is not available