avoid zero division - fix