fixed bug when entering data in autocompleted lists