Do not devide by count(group). It can be zero.