Fixed job restarting (id_job vs. id_action in WHERE)