Fixed zero division error.