fix bug in reply