fix sendAll problem