small fix to convert array to comma seperated values