Fix bug with tsrm_ls