UDP does not work properly