Fix a minor bug in the bcrypt strategy