quick fix for div by 0 error