Stupid bug.
Fix segfault when compiled with -O3 flag