Added a hack to handle gps failure