fixed memory leak in module bind