Fixed a typo and added some comments related to bugs