fix bug with dynamic module names

As mentioned in #6.