fix receiving data