Fixing receiveOnly template (compilation error)