fixed some ram issue during material creation

gonna manage multiple material and mesh copys in next days.