Fixed a bug where array was interpreted as an object