fixed divide by zero error in mockup