Interesting. No segfaults if I put key value to -1 in header.