Fixed CRASH and loading of Activities

no more duplicate and sorted latest first