Fixed problem with inherited doc types.