Fixed syntax warnings