fix bug in binary operator ring4 - thanks Nao Yonamine