fix clear queue after reconnect