Fix a timing attack