Fixed bug when receiving all zeros samples