Bug fix when keys do not exist.