- Fixed infinite loop
- Fixed typo