fixed devide by zero