Bug fix. Error with array declaration