fix error that client wait for a notify