Cannot assign not array to array variable