Devision by zero fix in utils