Avoid warning caused by division by zero