bugfix: pack array