Fix incorrect use of .join on list
Merge pull request #6150 from hkariti/fix_join_bug

Fix incorrect use of .join on list causing a traceback