Fix a bug handling notify command