fixed wrong use of self.log
Merge pull request #577 from JensTimmerman/modules_fix

fixed wrong use of self.log