Fix buffer overflow check