Fixed things

Fixed gps mode crashes
Other bug fixes