Fixed divide by zero error in service