Fixed bug and updated typo.