Fixed #154 on document module.
Was already done in product module.