Prevent errors with worker