fix bug, register is initial result value