Fix issue with [] as keygroup name mentioned in #4