Fix control syntax errors