fixing runtime errors, display GPS correctly