Fixed bug on data receive