Fix overflow (per jim17)