Fixed several mistakes pointed by Washam Fan. Thanks! :)