fixed key click crash bug