hotfix for division by 0 error