Fix for array to string conversion