fix for removing tags