chore: fix conditional variable