fixed issue with returning array instead of ArrayCollection