Fix for autocomplete being treated as function