Fix fatal error of registerAutoloaders in Module classes