fixed a notice that caused ajax lookup for autocomplete to fail