Fixed bug about has_assoc