fix edit keyboard bug