fixed empty string bug