Fixing tags checkbox behavior