sl/id_mapper: prevent unnecessary data lost

... caused by improper order of evaluation