fix bug for nonkey