Correct some Lua API programming errors.
Correct some Lua API programming errors.

pcqpcq/sox,pcqpcq/sox,cbagwell/sox,pcqpcq/sox,davel/sox,CaptainHayashi/sox,cbagwell/sox,mhartzel/sox_personal_fork,Distrotech/sox,MageSlayer/sox,CaptainHayashi/sox,MageSlayer/sox,uklauer/sox,davel/sox,Motiejus/sox,pcqpcq/sox,davel/sox,MageSlayer/sox,davel/sox,jacksonh/sox,CaptainHayashi/sox,MageSlayer/sox,jacksonh/sox,mhartzel/sox_personal_fork,Motiejus/sox,Distrotech/sox,jacksonh/sox,jacksonh/sox,uklauer/sox,Distrotech/sox,mhartzel/sox_personal_fork,CaptainHayashi/sox,mhartzel/sox_personal_fork,Motiejus/sox,Motiejus/sox,cbagwell/sox,uklauer/sox,MageSlayer/sox,cbagwell/sox,Distrotech/sox,uklauer/sox