Fix a bug when there is no key