fixed duplicate accept-key bug