fixed a bug: cann't recard SN prefix and Key path

Bug: cann't recard SN prefix and Key path. Change the key word from
'and' to 'or'.