fix updating arguments in condition statements