fix array to string conversion