fix bcrypt bug