fix finish with filled queue problem