bug in batch update