fixed typo

fixed type of `document`