Fixed big error with main module when loading