fix array to string issue