Fix input queue behavior

Input queue would never be fully consumed