Fixing bug in tag manager.