Fix creation of automatic job