Added another divide by zero check