Fixing length attribute

Changes:
* removal was wrong, would use wrong key
* removed the methods, as there was no use of it in non of the two checked codebases