resetting mastermode when privilege is relinquished