Fix crashing issue when right clicking -> copy password.