fix: syntax errors in if statements