MB-146 #Corrected update logic