Bugs squashing

```lenght``` corrected to ```length```