Fixed a typo and spec issue