Fixes a div by 0 error