fixing assoc-nil bug