ast: compare fix