fix toArray
update ember example