fix fromarray