Fix for undefined indexes on import.