fix document height bug