fixed bug with length term processor