Migrate logging from JUL to SLF4J
Avoid division by zero

caused: java.lang.ArithmeticException: / by zero