Fix syntax on if statement