fix syntax warnings