This was caused by the name buffer not being sized accordingly. Now counts the specialization constants.