fixing socket emit