Fix parsing array of objects