Fix returned value bug.