fix build-in module bugs