Fixed register.lua