fixed an overflow