clear queue after emitted