fix bug on runjob in web page
fix bug on test_views.py