fix for a problem with modules