fixing socket listen