int overflow fix