fixed int overflow bug high severity