fix overflow on code