fix overflow
bugfix