Overflow problem solved