fix for array to string problem