Fix document binding