Fixed error when importing data