FIX: Division by zero error, causing crashes in some instances.