Fix bug due to users with nonexistent keys.