Fixed assert on non-existing key