fix flags in _recv