fixed worker being called twice