Error in update.lua fixed