fixes issue in mass_update due wrong indentaion