Fixed: loop event in socket