Fix error in last commit, used array rather than object referencing