Fix advanced settings build

Some lines were duplicated