disconnection state fix
`set` method can accept null and undefined values