fixed bug handling trailing separator items