[kiocore] Fix the logic error in previous commit
This fixes the logic error introduced in previous commit c85a8e03f7687555, Sorry.