fix logic with archived running