Fix typeahead issues when opening modal forms

#118