fix type in main document