Fix incorrect condition for pendig-IO