Fix all calls to functions of p1_tls application