valgrind: Fix invalid write of size 4