Fix exceptions
Fix some typo bugs