* fix divide by zero when no apps.