Fixed a lot of bugs

- Fixed saving bug
- Fixed case sensitive bug
- Many other stuff