bugfix: set the correct status if we still have pending data