fix typo
fix reaction on integer overflow