Fixed issue with loading package JSON files in incorrect order.