Bug fixing. Better solution for IDs with brackets now.