Fixed division by zero bug

Fixed a small bug that sometimes caused division by zero to occur and preventing the simulations table from loading.

Signed-off-by: Bennie Leonard <bennie.leonard@gmail.com>