Trying to fix input bug in modal windows