fixes potential division by 0 error