Corrected the bug with the on/off button that were desynchronised.