active record autocomplete fix