Solves a batch update bug.