fix the overflow