fixed bug in getMaterialsByStructures() with array_merge function