Fix syntax warnings