Bug fix for getKeys on empty buckets