fixed bug in handling of associative tables