fix module loading on client-side