Fixing invalid id selector issue