Implement vile hack to make document succeed.