fixed bug with emiting on ports with firefox