fix a key bug