fix module exports bugs.