Fixed broken length() methods