Fixed a division by 0