fixed model loading: does not stop after the first task