Fixed zero division error