FIX: Some memory corruption errors.