Fix miscalculations caused by missing DTD
0.1.1