fix devide by zero