fix a bug when reply a closed thread