minor fix to key initiation