Fixing semi-colon syntax errors