Fix build errors in Settings