Bug fix where clicking cancel button sent to /job/undefined