solve bug of not sending clean command