[bug] Fixed a typo which caused the issue #312