diff --git a/autokara.py b/autokara.py
index 60a67f1699ef8c1c273d2f4a8748791cfbdf9639..c62053a37ca55ae6803f47f29606f6df79bbd07b 100644
--- a/autokara.py
+++ b/autokara.py
@@ -41,7 +41,7 @@ else:
 
 
 print("Identifying syl starts...")
-onsets = segment(sys.argv[1])
+onsets = segment(vocals_file)
 syls = [[t, ''] for t in onsets]
 
 print("Syls found, writing ASS file...")