fix for array to string conversion