diff --git a/src/defines.h b/src/defines.h
index 68b9c80a..09665137 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -13,7 +13,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 5
-#define VERSION_PATCH 45
+#define VERSION_PATCH 46
//-------------------------------------
typedef struct {
diff --git a/src/utils/sun.h b/src/utils/sun.h
index 1036f9ec..c6d078d4 100644
--- a/src/utils/sun.h
+++ b/src/utils/sun.h
@@ -25,7 +25,7 @@ namespace ah {
// Declination of the sun
double delta = ASIN(SIN(lambda) * SIN(23.44));
// Hour angle
- double omega = ACOS((SIN(-0.83) - SIN(lat) * SIN(delta) / COS(lat) * COS(delta)));
+ double omega = ACOS((SIN(-0.83) - SIN(lat) * SIN(delta)) / (COS(lat) * COS(delta)));
// Calculate sunrise and sunset
double Jrise = Jtransit - omega / 360;
double Jset = Jtransit + omega / 360;
diff --git a/src/web/html/setup.html b/src/web/html/setup.html
index 0a586849..e5bf96f3 100644
--- a/src/web/html/setup.html
+++ b/src/web/html/setup.html
@@ -163,7 +163,7 @@
-
+
Download your settings (JSON file) (only saved values)