Fix several bug in services about contest importer.