fix some syntax issues