fixed some problems with the modules