Fixed a syntax error with attempting to extend Document