Fixing non focusing text input bug