add a missing ; and change the way keys are generated