better handle empty associations