- Removed unused variable
- Fixed memory issue