Patch to fix the "Invalid read of size 4" errors. Bug #3617.