fixed complete job bug