Fix comment
Fix bug in secret determiniation