Fix bug where key kept incrementing