fix overflow