Make getKeys consistent