Fix breaking getLength() call

Change-Id: Iaa6cb22bf93a677aff077ce38ee11e606430cee5