minor fix to the length operator