fixed setting hooks
fixed libsetting.lua