Fix bugs of having plural-keys functions