fixed if syntax