Fixed bug sometimes missing packets