Fixed an issue where calculation would devide 0 with a number.