Fixed some code

* Use specific exception (not every where)
* Fixed some random typos
* Fixed a Weird bug. Please the the commit fe90056d520e35553bfa9f122500430c8890e151