fix document extends