Fixed bug that make server error on starting.
optimize import