FIX: Crashes in some cases.