fix a bug of callback