fix NoMethodError: undefined method `group' and `nment'

I fixed some bugs.
Please merge this.

If possible, I am glad when you create tags.