fixed bugs about UDP receiving