Fixed path_from_tos