Fixed issue where 1 material entry was saved as an array.