fix typo - obj.len -> obj.length - would result in NULL exception