Fix syntax problems