Wipe out previous mode settings before applying the new