Weird bug with module injection