fix broken autocomplete when integer rule IDs were used