fixed bug in notify