Fixed several small syntax errors