Fix errors in ParseDeclaration