fixed typo, specified type of get_latest_task