fix some errors in example/preload.lua