Bugfix and sanitize against divided by zero