Resets the mode on reset