We have just released build 1533 where this issue should be fixed.
Unfortunately, if you have already hit this problem in the previous release you will need to manually change the database to get rid of the problem. To do this issue the following SQL command (assuming the problem is in the business space called MyBS):
SELECT DataKey FROM DV_RES WHERE DataKey LIKE 'MyBS%';
or if working in testing mode:
SELECT DataKey FROM DV_RES WHERE DataKey LIKE 'BASTestDomainMyBS%';
You will see a list of resources for your business space. Your document template (.rdd) will have two entries, for example:
MyBS/DocTemplates/101/101/RDDoc5678.rdd
MyBS/DocTemplates/101/101/RDDoc5678893048394.rdd
The shorter one will be the old document, the longer one will be the modified document. You need to delete the old one, for example
DELETE from DV_RES WHERE DataKey='MyBS/DocTemplates/101/101/RDDoc5678.rdd';