Fixed typo and assertation failure