fixed bug with modules