Minor corrections that makes array work

Seems that everything is working now