fix the object that has length property