Fixed Secret Key Bug