bug fix of over flow