Fixes U4-5077 doc types with compositions

@nul800sebastiaan  PR with proposed fix for compositions issue.