Fix bug: Array to string conversion