Prevent off-by-one error do to real variables.