FIX: Weird memory corruption issues.