Fixing small typo bug messing with comparison by secondary key'