fix for overflow
fix compilation.