#1384: Fixed the missing else part, if the maximum length has not been exceeded