cover div by zero error