fix right overflow