fixing packedarray init