Corrected errors in the newly added tag selector functionality