Revert "Revert "Lengthindicator fixbug""

Reverts dimagi/commcare-hq#4957