Plugins: prevent possible division by zero