Add conditions where special cases needs all types of documents.
Correct field for case id.

Some grammars.
Merge branch 'hotfix-1.0.5'