Fixed bug with socket notifications.