Fix building socket key