fix removeCommas() for null and csv link in index