Fix syntactic errors