fix bug with custom keyboards