bugfix socket