The order of the keys matters: scan-path must be the last key for other settings to be taken into account.