Fixed typo and removed bug