Fix overflow in code snippers (I hope)