bug with module initialization