fix inconsistency in the interface of advance_to