Fix metadata parsing array