Bug fixes

FIXES:
- Removed warnings
- Fixed memory leak in the in game GUI