Fix issue that calling GetS3MemoryInfo() with wrong order.