fix to empty string bug