bugfix : prevent typecasting arrays to string