fixes bug in Module