Fix problems calling import collection from external contexts.