fix lookup packages in each remote and fatal error