Fixed socket dictionary bugs