Fixed potential division by zero