fix bug wrong keys selected