Fixed receive() functionality