Fix type issue in settings