Fixing bug on date with socket messages