diff --git a/html/includes/datautil.php b/html/includes/datautil.php
index 561f32ebf..b34f3530f 100644
--- a/html/includes/datautil.php
+++ b/html/includes/datautil.php
@@ -96,9 +96,9 @@ public function getStartup() {
$haveDatabase = $this->haveDatabase();
if ($haveDatabase) {
- $angle = $settings_array['angle'];
- $lat = $settings_array['latitude'];
- $lon = $settings_array['longitude'];
+ $angle = $settings_array['_angle'];
+ $lat = $settings_array['_latitude'];
+ $lon = $settings_array['_longitude'];
$tod = 'Unknown';
exec("sunwait poll exit set angle $angle $lat $lon", $return, $retval);