Fix tlnise function in share_sim_fn