fix: wrong condition is checked