fix repeated primitive types