looks to me like you're expecting a map instead of an array