Fixed main export: should not register module if it already exist

Resolved #1