Fixed bug in get_study_type and get_job