fix bug in notify