fixed bug with modules introduced in previous commit