Fixed the sync function betweend HW-GUI, however the GUI sends wrong values after being bypassed