Fix bug by removing ".length"