fix hasLength