fixed bug in LoadModules
improved hash class