Fix zero divisionerror in frontpage