fixing ht-from-alist to always use the first association in the alist