fix hash/array mixup