Update update.lua

fixed the missing end