Collection template did not correctly display variant attributes in text mode (#1125)