Fix for appended lists (to avoid TypeError exceptions)