Fix error message "argument is of length zero"