diff --git a/sorter.py b/sorter.py
index 22f4efceb11661cd06558c81180ea8a9f4d3101b..1f7029b8db3e304794099c271329a4cc82235258 100644
--- a/sorter.py
+++ b/sorter.py
@@ -44,7 +44,7 @@ def insert_video(lectureid, dbfilepath, fileformatid, hash="", filesize=-1):
 		(lecture_id, visible, path, video_format, title, comment, internal, file_modified, time_created, time_updated, created_by, hash, file_size)
 		VALUES 
 		(?, ?, ?, ?, "", "", "", ?, ?, ?, ?, ?, ?)''',
-		lectureid, autovisible, dbfilepath, fileformatid, datetime.now(), datetime.now(), datetime.now(), -1, hash, filesize)
+		lectureid, visible, dbfilepath, fileformatid, datetime.now(), datetime.now(), datetime.now(), -1, hash, filesize)
 	query('INSERT INTO sortlog (lecture_id,video_id,path,`when`) VALUES (?,?,?,?)', lectureid, video_id, dbfilepath, datetime.now())
 	schedule_thumbnail(lectureid)
 	schedule_job('probe', {'path': dbfilepath, 'lecture_id': lectureid, 'video_id': video_id, 'import-chapters': True})