fix a bug in batch src creation