Remove erroneous call to property length