fix for cases where there isn't even an item with key '0'