fix for some syntax errors