fixed typeahead and library/upload's use of it