Correcting numeric overflow