Fixed reshape bug in recv_array