fix Array to string conversion error