fix a bug in reply