Fixed secret head comparison