error solved for auto complete