corrected warning issued by boolean length check.