Fixed job detail casting bug