Fix state full allocatry copying in array