Fix Document definition