Getting fatal error when importing documents