fix extra message on timeouts

and division by 0 that caused null results to not save