crash on empty keys