Fixed the receive method