Fix logic error in ready-check