Fixed job cancelation bug