buffer overflow fix