Avoid some warnings when running batch jobs