FIX: avoid division by 0