fix run loop in sync worker