fix changed array encoding