Fixed Total bug