fixing incorrect document binds