viddy.lua: important fixes