Solved critical bug when there is no GPS