setting reflection in input method, if not already set

reflection was not getting set for the instance of the autocompleteinput class, so i have set it inside the input method.