Bugfix: using incorrect variable name in waves_to_wig.