Hopefully fix buffer overflow.