fix in range computation.