fix oldDoc empty issue
Merge branch 'slaivyn' into 0.1