fixing uploader empty regex delete all bug