Fixing imports in history