fix multiple tags not working bug