bug fix on settings