Fixed bug with [] array