Having problems with overflow of incr