fix the memory release on default module and still have problem in basic module