Fix issue where array is inside array instead of hash inside array