[AESH-80]
fixed possible divide by zero