Fixed a bug affecting material import