Update main.lua

Fixed settings bug