fix removed thread for writer